WCPay\Internal\Service\OrderService S

Total Complexity 21
Dependencies 7
Dependents 5
Total lines 256
Lines of code 96
Logical lines of code 36
Comment lines 134
Methods 14
Properties 2

Methods 14

Method Rating Maintainability Complexity Lines of code
get_payment_metadata()
S
49 6 28
get_order()
S
60 2 15
get_intent_id()
S
66 2 8
__construct()
S
77 1 4
_deprecated_get_order()
S
80 1 3
set_mode()
S
73 1 5
get_mode()
S
75 1 4
get_cart_hash()
S
76 1 4
get_customer_id()
S
80 1 3
is_paid()
S
72 1 6
is_pending()
S
72 1 6
is_valid_phone_number()
S
75 1 4
add_note()
S
80 1 3
delete()
S
80 1 3